package vista;
import java.awt.BorderLayout;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

import javax.swing.WindowConstants;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Vcalendario extends javax.swing.JFrame {
	private JPanel Pcalendarrio;
	private JScrollPane jScrollPane1;
	private JTable Tcalendario;
	private JLabel lblFecha;
	private JComboBox cmbFecha;

	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public Vcalendario() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				Pcalendarrio = new JPanel();
				getContentPane().add(Pcalendarrio, BorderLayout.CENTER);
				Pcalendarrio.setLayout(null);
				Pcalendarrio.setPreferredSize(new java.awt.Dimension(518, 339));
				{
					jScrollPane1 = new JScrollPane();
					Pcalendarrio.add(jScrollPane1);
					jScrollPane1.setBounds(68, 112, 332, 94);
					{
						TableModel TcalendarioModel = 
								new DefaultTableModel(
										new String[][] { { "One", "Two" }, { "Three", "Four" } },
										new String[] { "Column 1", "Column 2" });
						Tcalendario = new JTable();
						jScrollPane1.setViewportView(Tcalendario);
						Tcalendario.setModel(TcalendarioModel);
					}
				}
				{
					ComboBoxModel cmbFechaModel = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
					cmbFecha = new JComboBox();
					Pcalendarrio.add(cmbFecha);
					cmbFecha.setModel(cmbFechaModel);
					cmbFecha.setBounds(77, 30, 97, 23);
				}
				{
					lblFecha = new JLabel();
					Pcalendarrio.add(lblFecha);
					lblFecha.setText("Fecha:");
					lblFecha.setBounds(31, 33, 34, 16);
				}
			}
			pack();
			this.setSize(501, 408);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
